package com.dzf.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @Data get/set
 * @NoArgsConstructor 无参
 * @AllArgsConstructor 有参
 * @ToString toString方法
 */
@Document("t_bcontext")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class BlogContext {
    /**
     * id : 文章内容ID
     * context ： 文章真正内容
     */
    @Id
    private String id;
    private Object context;
}
